{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}
<div class="comspreadstat clearfix">
	<span class="spread-item" style="width:100%;">银豆数量<b>{$user_info.points|default='0'}</b></span>
	
</div>

                                       
<header class="Thead">银豆历史记录</header>
<form style="position:relative" action="{:url('Prepoints/index')}" id="login-wrap" method="get">
    <div class="data_d">
        开始时间
        <div style="" class="data_t">
            <div class="gs-text" style="width: 100px;">
                <input type="text" name="start" id="date2" value="{if condition= '$start eq null'}{:date('Y-m-d',time())}{else}{$start}{/if}" data-options="{'type':'YYYY-MM-DD','beginYear':2010,'endYear':2088}" style="width:100px;height:19px;">
            </div>
        </div>
    </div>
    <div class="data_d">
        结束时间
        <div style="" class="data_t">
            <div class="gs-text" style="width: 100px;">
                <input type="text" name="end" id="date3" value="{if condition= '$end eq null'}{:date('Y-m-d',time())}{else}{$end}{/if}" data-options="{'type':'YYYY-MM-DD','beginYear':2010,'endYear':2088}" style="width:100px;height:19px;">
            </div>
        </div>
    </div>
    <input class="sous" id="reg-btn" type="submit" value="搜索" style="position: absolute; bottom:-3%;right: 25%;width: 45px;text-align: center;height: 25px;    border-radius: 5px;color: #fff;box-shadow: 1px 1px 2px #907777; background: #b95f5f;">
</form>
<div id="ulist" style="text-align: center;">
{volist name="list" id="p" empty="$empty"}            
    <section class="ulist clearfix">
        <div>
            {$p.description}
            <?php if(!empty($p['order_id'])){ ?>
            <a style="color:red;margin:0 6px;" href='{:url("order/order_info",array("order_id"=>$p["order_id"]))}'>{$p.order_num_alias}</a>
            <?php } ?>
            <span style="padding:0 8px;">
                <?php if($p['prefix']==1){echo '+';}else{echo '-';} ?>
            </span>
            <?php echo $p['money'].' '.date('Y-m-d',$p['creat_time']); ?>
        </div>
    </section>
{/volist}
</div>
<div style="text-align: right;padding: 2% 3%;">
    数据总数:{$list->total()}条
    {$page}
</div>

<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="__PUBLIC__/view_res/mobile/js/jquery_date.js"></script>
<script>
    $.date('#date2');
    $.date('#date3');

</script>


{/block}

